<?php

/***  DOCUMENTATION LAYER

Ceo Unit Testing

Last Update: Sep 2007
	
DESCRIPTION
	testing CEO with SimpleTest unit testing
	
NOTES
		
***/

$_tx0 = microtime();

// load SimpleTest
require_once('simpletest/unit_tester.php');
require_once('simpletest/reporter.php');
require_once('simpletest.ceo_reporter.inc.php');

// test suite
$suite_file = 'concept.simpletest.testsuite.php';
$test = &new TestSuite('TestSuite Test');
$test->addTestFile($suite_file);
$test->run(new CeoReporter());

// debug
if ( 1 ) print '<pre>' . print_r($test, 1) . '</pre>';


// timer
$_txn = microtime();
$stx = number_format(((substr($_txn,0,9)) + (substr($_txn,-10)) - (substr($_tx0,0,9)) - (substr($_tx0,-10))),4); 
print "<h6 style='margin:12px 0 4px;'>test '{$test->_label}' complete in $stx s</h6>";
print "<h6 style='margin:4px 0;'>more info on SimpleTest available at <a href='http://simpletest.org/'>http://simpletest.org/</a></h6>";

?>
